package model.medelMin.tmp;

import model.User;
import model.User2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Tmp2 {
    private User2 user2;
    @Autowired
    public Tmp2(User2 user2){
        this.user2 =user2;
    }
    //@Autowired
    public Tmp2(User2 user2, User user){
        user2.id = 2;
    }
    public void fun(){
        user2.setId(2);
        System.out.println(user2.id);
    }
}
